@extends('layouts.app')
@section('content')
    <div class="content">
        <a class="btn btn-info btn-sm" href="{{ redirect()->back()->getTargetUrl() }}"> 返回 </a>
        <br />
        <br />
        {!! form($form) !!}
    </div>
@endsection
@push('scripts')
    <script>
        $('.content').find('form').addClass('form-inline')
        $('.content').find('form').find('label').attr('style', 'width:120px;text-align:center')
        $('.form-group').attr('style', 'margin:10px 0px;')

        $('[for="name"]').parent().after('<br>');

        $('[for="icon"]').next('div').attr('style', 'display:inline')
        $('[for="icon"]').parent().find('br').remove();
        $('[for="icon"]').parent().find('p').attr('style', 'margin-left:10px;display:inline');
        $('[for="icon"]').parent().find('p').after('<br>');
        $('[for="icon"]').parent().after('<br>');

        $('[for="describe"]').parent().after('<br>');
        $('[for="describe"]').parent().find('textarea').attr('style', 'width:500px;height:100px;resize:none');
    </script>
@endpush
